﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BUS;
using DAO;
using DTO;
using NUnit.Framework;

namespace UnitTest
{
    public class TestPhongBUS
    {
        [Test]
        public void TestLaySoNgayThue()
        {
            string maKH = "24";
            string maphong = "3";
            int ketqua = BUS.PhongBUS.laySoNgayThue(maKH, maphong);
            Assert.AreEqual(ketqua, 2);
        }
        [Test]
        public void TestTinhTien()
        {
            string maKH = "24";
            string maphong = "3";
            int ngaythue = 3;
            double ketqua = BUS.PhongBUS.TinhTien(maKH, maphong, ngaythue);
            Assert.AreEqual(ketqua, 51000);
        }
    }
}
